Skip to content

docs for credential refresh / issuance for PoH#38

Merged
carlomazzaferro merged 11 commits intomainfrom
feat/poh-credential-and-refresh-docs
Feb 12, 2026
Merged

docs for credential refresh / issuance for PoH#38
carlomazzaferro merged 11 commits intomainfrom
feat/poh-credential-and-refresh-docs

Conversation

@carlomazzaferro
Copy link
Copy Markdown
Contributor

@carlomazzaferro carlomazzaferro commented Feb 5, 2026

Summary

  • Add Credential Issuance section with /api/v1/refresh documentation and detailed credential format.
  • Add new Credential reference page covering schema, serialization, hashing/signature, and PoH-specific usage.
  • Update World ID navigation and core concepts with issuer/credential definitions and spec links.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3c397847db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread world-id/credential-issuance/refresh.mdx Outdated
Comment thread docs.json Outdated
"group": "Sign in with World ID",
"pages": ["world-id/sign-in/oidc"]
},
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's create a new section altogether for the PoH Issuer. @andy-t-wang sg?

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread world-id/concepts.mdx Outdated
- **App ID**: The ID of your app that is assigned in our [Developer Portal](https://developer.worldcoin.org/).
- **Action**: A developer-facing primitive that lets you put any app operation behind a unique-human gate. An app can have one or more actions depending on your use case.
- **Issuer**: An entity authorized to issue a credential for a specific schema. Issuers sign credentials and publish their public keys in the `CredentialSchemaIssuerRegistry`.
- **Credential**: A signed attestation about a subject used to generate proofs. It includes issuer, subject, validity window, and claim commitments as defined in the [World ID 4.0 specs](https://github.com/worldcoin/world-id-protocol/tree/main/docs/world-id-4-specs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's point instead to the source of truth for what is a credential, https://docs.rs/world-id-primitives/latest/world_id_primitives/credential/struct.Credential.html

Comment thread world-id/reference/credential.mdx Outdated
"twitter:image": "/images/docs/docs-meta.png"
---

This endpoint issues a new proof-of-human (PoH) credential to a holder of a valid World ID. It can re-verify with a Personal Custody Package (PCP) or issue a credential-only refresh when a PCP is not available.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear that this endpoint is only intended for v3 users to get their v4 credential

Comment thread poh-issuer/index.mdx Outdated
Comment thread poh-issuer/index.mdx Outdated
- **Issuer public key** (`issuer.pk`) is serialized as `[x, y]` decimal strings for BabyJubJub affine coordinates.
- **Signature** is hex-encoded compressed bytes (no `0x` prefix).

### PoH-specific claims
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is super important to document, but let's keep it only in a single place

Comment thread docs.json
]
},
{
"tab": "PoH Issuer",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"tab": "PoH Issuer",
"tab": "Proof of Human Credential",

Comment thread poh-issuer/index.mdx
"og:image": "/images/docs/docs-meta.png"
"twitter:image": "/images/docs/docs-meta.png"
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be tackled in a separate PR but in general we should introduce the PoH credential. @andy-t-wang probably someone from your team can support

Comment thread poh-issuer/index.mdx

If PCP validation fails, the endpoint returns an error status with `PCP_VALIDATION_FAILED`.

## Credential object format
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of having the entire payload here which may change (e.g. the encoding of the issuer pk already changed), I would only document the issuer_schema_id = 1, what each claim represents (only claim[0] used), and empty associated data hash

@carlomazzaferro carlomazzaferro merged commit ce23546 into main Feb 12, 2026
8 checks passed
@carlomazzaferro carlomazzaferro deleted the feat/poh-credential-and-refresh-docs branch February 12, 2026 06:14
Takaros999 added a commit that referenced this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants